$OpenBSD: patch-gphoto2_actions_c,v 1.4 2014/03/24 11:07:47 ajacoutot Exp $
--- gphoto2/actions.c.orig	Sun Feb 23 13:53:52 2014
+++ gphoto2/actions.c	Mon Mar 24 12:03:26 2014
@@ -18,7 +18,8 @@
  * Boston, MA  02110-1301  USA
  */
 
-#define _XOPEN_SOURCE	/* strptime proto, but this hides other prototypes */
+/* strptime is XPG4v2 */
+#define _XOPEN_SOURCE_EXTENDED 1	/* strptime proto, but this hides other prototypes */
 #define _GNU_SOURCE	/* get all the other prototypes */
 #define __EXTENSIONS__	/* for solaris to get back strdup and strcasecmp */
 
@@ -35,6 +36,9 @@
 #ifdef HAVE_SYS_TIME_H
 # include <sys/time.h>
 #endif
+
+/* basename(3) */
+#include <libgen.h>
 
 #include "actions.h"
 #include "i18n.h"
